package dsx.dsxFrame;

public class _RPCServer {
	String path;

	boolean bizDebugEnabled = false;
	String bizServerName = "";
	String netServerName = "";
	String bizServerClass = "";
	String converterClass = "";
	String netServerClass = "";
	String netServerConfig = "";
	String slicerClass = "";
	int maxWorkerNum = 1;
	int autoStart = 0;
	int status = 0;

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public boolean isBizDebugEnabled() {
		return bizDebugEnabled;
	}

	public void setBizDebugEnabled(boolean bizDebugEnabled) {
		this.bizDebugEnabled = bizDebugEnabled;
	}

	public String getBizServerName() {
		return bizServerName;
	}

	public void setBizServerName(String bizServerName) {
		this.bizServerName = bizServerName;
	}

	public String getNetServerName() {
		return netServerName;
	}

	public void setNetServerName(String netServerName) {
		this.netServerName = netServerName;
	}

	public String getBizServerClass() {
		return bizServerClass;
	}

	public void setBizServerClass(String bizServerClass) {
		this.bizServerClass = bizServerClass;
	}

	public String getConverterClass() {
		return converterClass;
	}

	public void setConverterClass(String converterClass) {
		this.converterClass = converterClass;
	}

	public String getNetServerClass() {
		return netServerClass;
	}

	public void setNetServerClass(String netServerClass) {
		this.netServerClass = netServerClass;
	}

	public String getNetServerConfig() {
		return netServerConfig;
	}

	public void setNetServerConfig(String netServerConfig) {
		this.netServerConfig = netServerConfig;
	}

	public String getSlicerClass() {
		return slicerClass;
	}

	public void setSlicerClass(String slicerClass) {
		this.slicerClass = slicerClass;
	}

	public int getMaxWorkerNum() {
		return maxWorkerNum;
	}

	public void setMaxWorkerNum(int maxWorkerNum) {
		this.maxWorkerNum = maxWorkerNum;
	}

	public int getAutoStart() {
		return autoStart;
	}

	public void setAutoStart(int autoStart) {
		this.autoStart = autoStart;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Override
	public boolean equals(Object obj) {
		_RPCServer config = (_RPCServer) obj;
		if (config == null)
			return false;
		return bizServerName.equals(config.bizServerName)
				&& bizServerClass.equals(config.bizServerClass)
				&& converterClass.equals(config.converterClass)
				&& netServerName.equals(config.netServerName)
				&& netServerClass.equals(config.netServerClass)
				&& slicerClass.equals(config.slicerClass)
				&& maxWorkerNum == config.maxWorkerNum;
	}

}
